package rezetkaPages;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

/**
 * Created by IIGalytska on 10.04.14.
 */
public abstract class BasePage {

    public static WebDriver driver;
    //Search bar
    protected static final By saerchButton = By.cssSelector("html body header#body-header.header div.header-bg div.wide-body-layout div.wrap div.header-append-right div.header-phones-search form.header-search div.header-search-submit-wrap span.btn-link button.btn-link-i");
    protected static final By searchBar = By.name("text");
    //Pages of the main menu
    protected static final By computersNotebooks = By.xpath("//*[@id=\"computers-notebooks\"]/div/a");
    protected static final By phonesMp3Gps = By.xpath("//*[@id=\"phones-mp3-gps\"]/div/a");
    protected static final By tvPhotoVideo = By.xpath("//*[@id=\"tv-photo-video\"]/div/a");
    protected static final By householdAppliances = By.xpath("//*[@id=\"bt\"]/div/a");
    protected static final By outdoorsMan = By.xpath("//*[@id=\"outdoorsman\"]/div/a");
    protected static final By kids = By.xpath("//*[@id=\"kids\"]/div/a/span");
    protected static final By houseGarden = By.xpath("//*[@id=\"house_garden\"]/div/a");
    protected static final By avto = By.xpath("//*[@id=\"273290\"]/div/a/span[2]");
    protected static final By airTrainTickets = By.xpath("//*[@id=\"fatmenu_14\"]/div/a");
   //Main page
    protected static final By mainPage = By.xpath("/html/body/header/div[2]/div/div/div/div/img");
    //Link to the first search result
    protected static final By firstLinkToSearchresult = By.cssSelector("html body div#head_banner_container.content div.catalog-design-name div.body-layout div.columns div.c-middle div.container div#block_with_goods div div.goods div.gtile-i-wrap div.gtile-i div.gtile-i-box div.gtile-i-desc-box div.gtile-i-title a");






    public BasePage(WebDriver driver) {
        this.driver = driver;
    }











}
